package com.heart.house.user.common;

/**
 * 全局状态码
 */
public enum RestCode {

    OK(0, "OK"),
    UNKOWN_ERROR(1, "服务异常"),
    TOKEN_INVALID(2,"TOKEN失效"),
    USER_NOT_EXIST(3,"用户不存在"),
    WRONG_PAGE(10100, "页码不存在");

    public final int code;
    public final String msg;

    private RestCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
